package top.yangbuyi.config.shiro;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @description: 杨不易网站:www.yangbuyi.top
 * @program: yangbuyiopenHis2020
 * @ClassName: ShiroProperties
 * @create: 2020-08-28 00:34
 * @author: yangbuyi
 * @since： JDK1.8
 * @ShiroProperties: Shiro配置文件--基于yml进行注入参数$
 **/

@ConfigurationProperties(prefix = "shiro")
@Data
@Slf4j
public class ShiroProperties {
	  /**
	   * 密码加密方式
	   */
	  private String hashAlgorithmName="md5";
	  /**
	   * 密码散列次数
	   */
	  private Integer hashIterations=2;

	  /**
	   * 不拦击的路径
	   */
	  private String [] anonUrls;

	  /**
	   * 拦截的路径
	   */
	  private String [] authcUrls;
}

